package jmind.asteroidea.example.demo;

import jmind.asteroidea.annotations.Starfish;
import jmind.asteroidea.example.BizException;
import org.springframework.context.annotation.Primary;
import org.springframework.core.annotation.Order;

import java.util.Arrays;

/**
 * description:
 *
 * @author weibo.xie
 * @date:2022/7/7 下午3:45
 */
@Starfish(tag="my1",order = 100)
public class MyService1  implements MyService {
    @Override
    public String sayHello(String str) {
        System.err.println("MyService1 "+str);
        return null;
    }

    @Override
    public String getName(String name, Integer abc) {
        if(abc>10){
            throw new BizException("code1","message");
        }
        return name+"---"+getClass()+"---"+abc;
    }

    @Override
    public int getMax() {
        return 10;
    }


}
